package com.zuoye.day09;

public class CouponCode {
    public static void main(String[] args) {
        String oldCode = "1Ct3r4ip_ti4C6k9Et^";
        String newCode = "";

        for (int i = 0; i < oldCode.length(); i++) {
            if ((oldCode.charAt(i) > 'a' && oldCode.charAt(i) < 'z') || (oldCode.charAt(i) > 'A' && oldCode.charAt(i) < 'Z') || (oldCode.charAt(i) == '[') || (oldCode.charAt(i) == '\\') || (oldCode.charAt(i) == ']') || (oldCode.charAt(i) == '^') || (oldCode.charAt(i) == '_') || (oldCode.charAt(i) == '\'')) {
                System.out.print(newCode.concat(String.valueOf(oldCode.charAt(i))));
            }


        }
    }
}
